-
Notifications
You must be signed in to change notification settings - Fork 61
minor english corrections #79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/py_eddy_tracker/dataset/grid.py
Outdated
@@ -1275,7 +1275,7 @@ def get_step_in_km(self, lat, wave_length): | |||
min_wave_length = max(step_x_km, step_y_km) * 2 | |||
if wave_length < min_wave_length: | |||
logger.error( | |||
"Wave_length too short for resolution, must be > %d km", | |||
"Wavelength too short for resolution, must be > %d km", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case we talked about variable which are called "wave_length", i don't know the best soltuion
src/py_eddy_tracker/dataset/grid.py
Outdated
@@ -1315,7 +1315,7 @@ def finalize_kernel(self, kernel, order, half_x_pt, half_y_pt): | |||
|
|||
def kernel_lanczos(self, lat, wave_length, order=1): | |||
"""Not really operational | |||
wave_length in km | |||
wavelength in km |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
n this case we talked about variable which are called "wave_length", i don't know the best soltuion
src/py_eddy_tracker/dataset/grid.py
Outdated
@@ -1327,7 +1327,7 @@ def kernel_lanczos(self, lat, wave_length, order=1): | |||
return self.finalize_kernel(kernel, order, half_x_pt, half_y_pt) | |||
|
|||
def kernel_bessel(self, lat, wave_length, order=1): | |||
"""wave_length in km | |||
"""wavelength in km |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
n this case we talked about variable which are called "wave_length", i don't know the best soltuion, maybe add docstring for argument like :
:param float wave_length: in km
@@ -255,6 +257,12 @@ def correct_close_events(self, nb_days_max=20): | |||
:param float nb_days_max: maximum time to search for splitting-merging event | |||
""" | |||
|
|||
# FIXME : we want to change | |||
# segment A splits from segment B, then x days after segment B merges with A | |||
# to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe create a project note or an issue for improvement, about that
@@ -1197,14 +1205,17 @@ def fully_connected(self): | |||
return self.tag_segment().shape[0] == 1 | |||
|
|||
def remove_trash(self): | |||
""" | |||
Remove the lonely eddies (only 1 obs in segment, associated segment number is 0)""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't think black allow """" on same line?
@@ -885,7 +885,7 @@ def load_from_netcdf( | |||
:param bool raw_data: If true load data without apply scale_factor and add_offset | |||
:param None,list(str) remove_vars: List of variable name which will be not loaded | |||
:param None,list(str) include_vars: If defined only this variable will be loaded | |||
:param None,dict indexs: Indexs to laad only a slice of data | |||
:param None,dict indexs: Indexs to laod only a slice of data |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still a typo :)
No description provided.